package com.cxl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author: 20971
 * @time: 2022/3/10 10:19
 * @description:
 */
@Data
public class UserLog implements Serializable {

    @Id
    private String id;

    /*日志内容*/
    private String content;

    /*日志创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date logDate;
}
